package com.eusoft.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.eusoft.demo.entity.Car;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车辆 Mapper 接口
 * </p>
 *
 * @author DevMing
 * @since 2021-08-19
 */
public interface CarMapper extends BaseMapper<Car> {

    /*获取车辆列表*/
    List<Car> queryCarList(@Param(Constants.WRAPPER) Wrapper<Car> wrapper, Integer offset, Integer pageRows);

    /*获取车辆列表数据条数*/
    Integer queryCarNum(@Param(Constants.WRAPPER) Wrapper<Car> wrapper);

    /*根据car_aid删除车辆*/
    void delByAid(Integer aid);


}
